import magageRoutes from '@/router/Manage/index'
import magageDetailRoutes from '@/router/Manage/detailPage'
import prepareRoutes from '@/router/Prepare/index'
import buildRoutes from '@/router/Build/index'
import jointVentureRoutes from '@/router/JointVenture/index'
import selfSupportRoutes from '@/router/SelfSupport/index'
import selfSupportDetailRoutes from '@/router/SelfSupport/detailPage'
import enterpriseServices from '@/router/EnterpriseServices/index'
import enterpriseServicesDetailRoutes from '@/router/EnterpriseServices/detailPage'
import propertyRoutes from '@/router/Property/index'
import businessSummaryRoutes from '@/router/BusinessSummary'
import specialReportRoutes from '@/router/SpecialReport'
import twoControlReportRoutes from '@/router/TwoControlReport'
import energyRoutes from '@/router/Energy'
let routes = [
  {
    path: '/demoPage',
    name: 'demoPage',
    meta: {
      title: 'demoPage页面',
      keepAlive: true,
    },
    component: () => import('@/views/demoPage.vue')
  },
  {
    path: '/IframePage',
    name: 'IframePage',
    meta: {
      title: 'iframe页面',
      keepAlive: true,
    },
    component: () => import('@/views/IframePage.vue')
  },
  {
    path: '/HouseDemo',
    name: 'HouseDemo',
    meta: {
      title: '房态图项目列表',
      keepAlive: true,
    },
    component: () => import('@/views/HouseDemo.vue')
  },
  {
    path: '/ShutDownProject',
    name: 'ShutDownProject',
    meta: {
      title: '关停项目列表',
      keepAlive: true,
    },
    component: () => import('@/views/ShutDownProject/projectList.vue')
  },
  {
    path: '/ShutDownProject/dashBoard',
    name: 'ShutDownProject/dashBoard',
    meta: {
      title: '关停项目列表',
      keepAlive: true,
    },
    component: () => import('@/views/ShutDownProject/dashBoard.vue')
  },
]

routes = routes.concat(magageRoutes)
routes = routes.concat(magageDetailRoutes)
routes = routes.concat(prepareRoutes)
routes = routes.concat(buildRoutes)
routes = routes.concat(jointVentureRoutes)
routes = routes.concat(selfSupportRoutes)
routes = routes.concat(selfSupportDetailRoutes)
routes = routes.concat(enterpriseServices)
routes = routes.concat(enterpriseServicesDetailRoutes)
routes = routes.concat(propertyRoutes)
routes = routes.concat(businessSummaryRoutes)
routes = routes.concat(specialReportRoutes)
routes = routes.concat(twoControlReportRoutes)
routes = routes.concat(energyRoutes)
// const router = createRouter({
//   history: createWebHistory(process.env.BASE_URL),
//   routes
// })

export default routes
